﻿<%-- 
    Copyright (C) Binod Nepal, Planet Earth Solutions Pvt. Ltd., Kathmandu.
	Released under the terms of the GNU General Public License, GPL, 
	as published by the Free Software Foundation, either version 3 
	of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
--%>

<%@ Page Title="" Language="C#" MasterPageFile="~/Classifieds/Main.Master" AutoEventWireup="true"
    CodeBehind="SignUp.aspx.cs" Inherits="MixNP.Web.Classifieds.Account.SignUp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="StyleSheetContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptsContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">
    <div>
        <h1>
            <img src="/Resources/Images/register.png" alt="Sign up now to post unlimited entries absolutely free" />
        </h1>
        <hr class="hr" />
        <asp:LinkButton ID="ResentConfirmationLinkButton" runat="server" Text="Resend Confirmation Email"
            PostBackUrl="~/sign-up/confirm/resend-email.mix" />
        <table class="form">
            <tr>
                <td class="form-label">
                    <label for="NameTextBox">
                        Name
                    </label>
                </td>
                <td class="form-control">
                    <asp:TextBox ID="NameTextBox" ClientIDMode="Static" runat="server" CssClass="textbox normal-width"
                        MaxLength="128" onblur='if(!jQuery("#NickNameTextBox").val()){jQuery("#NickNameTextBox").val(jQuery("#NameTextBox").val());}' />
                </td>
                <td class="form-info">
                    <asp:RequiredFieldValidator ID="NameRequiredFieldValidator" runat="server" ControlToValidate="NameTextBox"
                        Text="*" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" CssClass="alert"
                        Display="Dynamic" ValidationGroup="SignUp" />
                </td>
            </tr>
            <tr>
                <td class="form-label">
                    <label for="NickNameTextBox">
                        Nick Name
                    </label>
                </td>
                <td class="form-control">
                    <asp:TextBox ID="NickNameTextBox" ClientIDMode="Static" runat="server" CssClass="textbox normal-width"
                        MaxLength="128" />
                    <br />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="NickNameRequired" runat="server" ControlToValidate="NickNameTextBox"
                        Text="*" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" CssClass="alert"
                        Display="Dynamic" ValidationGroup="SignUp" />
                </td>
            </tr>
            <tr>
                <td class="form-label">
                </td>
                <td class="alert">
                    Your name will not be shown to other members if you want to privately use this site.
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td class="form-label">
                    <label for="EmailAddressTextBox">
                        Email Address
                    </label>
                </td>
                <td class="form-control">
                    <asp:TextBox ID="EmailAddressTextBox" ClientIDMode="Static" runat="server" CssClass="textbox normal-width"
                        TextMode="Email" MaxLength="128" />
                </td>
                <td class="form-info">
                    <asp:RequiredFieldValidator ID="EmailRequiredFieldValidator" runat="server" ControlToValidate="EmailAddressTextBox"
                        Text="*" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" CssClass="alert"
                        Display="Dynamic" ValidationGroup="SignUp" />
                </td>
            </tr>
            <tr>
                <td class="form-label">
                    <label for="PasswordTextBox">
                        Password
                    </label>
                </td>
                <td class="form-control">
                    <asp:TextBox ID="PasswordTextBox" ClientIDMode="Static" runat="server" CssClass="textbox normal-width"
                        TextMode="Password" MaxLength="128" />
                </td>
                <td class="form-info">
                    <asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" ControlToValidate="PasswordTextBox"
                        Text="*" ErrorMessage="*" EnableClientScript="true" SetFocusOnError="true" CssClass="alert"
                        Display="Dynamic" ValidationGroup="SignUp" />
                </td>
            </tr>
            <tr>
                <td class="form-label">
                    <label for="ConfirmPasswordTextBox">
                        Confirm Your Password
                    </label>
                </td>
                <td class="form-control">
                    <asp:TextBox ID="ConfirmPasswordTextBox" ClientIDMode="Static" runat="server" CssClass="textbox normal-width"
                        TextMode="Password" MaxLength="128" />
                </td>
                <td class="form-info">
                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequiredFieldValidator" runat="server"
                        ControlToValidate="ConfirmPasswordTextBox" Text="*" ErrorMessage="*" EnableClientScript="true"
                        SetFocusOnError="true" CssClass="alert" Display="Dynamic" ValidationGroup="SignUp" />
                    <asp:CompareValidator ID="ComparePasswordValidator" runat="server" ControlToValidate="ConfirmPasswordTextBox"
                        ControlToCompare="PasswordTextBox" EnableClientScript="true" ErrorMessage="Passwords do not match."
                        Operator="Equal" CssClass="alert" Display="Dynamic" ValidationGroup="SignUp" />
                </td>
            </tr>
            <tr>
                <td class="form-label">
                </td>
                <td class="alert">
                    <asp:Literal ID="ErrorLiteral" runat="server" />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td class="form-label">
                </td>
                <td class="form-control">
                    <asp:Button ID="SignUpButton" runat="server" Text="SignUp" OnClick="SignUpButton_Click"
                        ValidationGroup="SignUp" />
                </td>
                <td class="form-info">
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsContentPlaceHolderBottom"
    runat="server">
</asp:Content>
